import { getSlider } from '../api/public';
import * as types from './action-types';
export default{
    state:{
        sliders: [],
    },
    mutations:{
        [types.SET_SLIDERS](state, sliders) {
            state.sliders = sliders;
        }
    },
    actions:{
        async [types.SET_SLIDERS]({ commit }) {
            let { sliders } = await getSlider();
            commit(types.SET_SLIDERS, sliders);
         }
    },
    modules:{}
}